<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2017/10/26
  Time: 0:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Title</title>
    <script TYPE="text/javascript">
        var temp = function () {
            var aNodes = document.getElementsByTagName("a");
            for (var i = 0; i < aNodes.length; i++) {
                aNodes[i].onclick = function () {
                    var xmlhttprequest = new XMLHttpRequest();
                    var method = "GET";
                    var url = this.href;
                    xmlhttprequest.open(method, url);
                    xmlhttprequest.send(null);
                    xmlhttprequest.onreadystatechange = function () {
                        if (xmlhttprequest.readyState == 4) {
                            if (xmlhttprequest.status == 200 || xmlhttprequest.status == 304) {
                                document.getElementById("details").innerHTML = xmlhttprequest.responseText;
                            }
                        }
                    }
                    return fal;
                }
            }
        }
    </script>
</head>
<body onload="temp()">
<h1>people</h1>
<ul>
    <LI><a href="files/andy.html">Andy</a></LI>
    <LI><a href="#">Richard</a></LI>
    <LI><a href="#">Jermy</a></LI>
</ul>
<div id="details"></div>

</body>
</html>
